<template>
  <f7-page class="activity-page">
    <div class="swiper-box">
      <div class="swiper-inner">
        <f7-swiper pagination :params="swiperParams">
          <f7-swiper-slide v-for="(item, index) in 3" :key="index">
            <img
              src="http://t9.baidu.com/it/u=583874135,70653437&fm=79&app=86&size=h300&n=0&g=4n&f=jpeg?sec=1581137413&t=9c8a1515837eb3eabccbcc4817ede96d"
              alt="">
          </f7-swiper-slide>
        </f7-swiper>
      </div>
    </div>
    <div class="content-padding">
      <f7-link class="activity-item" href="/lucky-spin/">
        <img class="img-item"
             src="http://t9.baidu.com/it/u=583874135,70653437&fm=79&app=86&size=h300&n=0&g=4n&f=jpeg?sec=1581137413&t=9c8a1515837eb3eabccbcc4817ede96d"
             alt="">
        <div class="text-floating"><span class="main-font-color">幸运大转盘</span></div>
        <img class="zhezhao" src="../../assets/huodong-zhezhao.png" alt="">
      </f7-link>
      <f7-link class="activity-item" href="/rat-push-project/">
        <img class="img-item"
             src="http://t9.baidu.com/it/u=583874135,70653437&fm=79&app=86&size=h300&n=0&g=4n&f=jpeg?sec=1581137413&t=9c8a1515837eb3eabccbcc4817ede96d"
             alt="">
        <div class="text-floating"><span class="main-font-color">抢鼠计划</span></div>
        <img class="zhezhao" src="../../assets/huodong-zhezhao.png" alt="">
      </f7-link>
    </div>
  </f7-page>
</template>

<script>
  export default {
    name: "activity",
    data() {
      return {
        swiperParams: {
          observer: true,
          observeParents: true,
          autoplay: {
            delay: 3000
          },
          loop: true
        }
      }
    }
  }
</script>

<style scoped lang="scss">
  .activity-page {
    background: url("../../assets/home-bg.png") no-repeat center top;
    background-size: 100% 100%;
  }

  .content-padding {
    margin-top: 30px;
  }

  .activity-item {
    height: 358px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    display: block;

    .text-floating {
      width: 100%;
      position: absolute;
      left: 0;
      bottom: 30px;
      box-sizing: border-box;
      text-align: center;
      padding: 20px 20px 25px;
      background: rgba(12, 24, 45, 0.8);
    }

    .zhezhao {
      width: 100%;
      height: 100%;
      position: absolute;
      left: 0;
      top: 0;
    }
  }
</style>